<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>易标智能化大数据校验平台</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="/static/easyui/themes/default/easyui.css"> 
        <link rel="stylesheet" type="text/css" href="/static/easyui/themes/icon.css"> 
        <script type="text/javascript" src="/static/easyui/jquery.min.js"></script>
		<script type="text/javascript" src="/static/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="/static/easyui/locale/easyui-lang-zh_CN.js"></script>

		<style type="text/css">
			.iframe{
				margin: 0px;
				padding: 0px;
				border-width:0px;
			}
			.iframeDiv{
				margin: 0px;
				padding: 0px;
				border-width:0px;
			}
		</style>
		<script type="text/javascript">
		
		$(function(){
			/*菜单树*/
			$("#menu").tree({
				url:'/login/menu/getMenu',
				onClick:function(node){
					var tabHtml = "<div class='iframeDiv' style='width:100%;height:100%;' >"
					tabHtml+="<iframe border=0 width='100%' height='99%'  class='iframe' src="+node.attributes+"></div>"
					$("#tabs").tabs("add",{
						title:node.text,
						fit:true,
						closable:true,
						content:tabHtml
					}); 
				}
			});
		});

		
		/*
			封装form表单数据为json,封装函数供子页面调用
		*/
		window.getFormJson = function(form) {
			  var o = {};
			  var a = $(form).serializeArray();
			  $.each(a, function() {
				   	if (o[this.name] !== undefined) {
				    	if (!o[this.name].push) {
				     		o[this.name] = [ o[this.name] ];
				   		}
				    	o[this.name].push(this.value || '');
				   	} else {
				    	o[this.name] = this.value || '';
				   	}
			 });
			 return o;
		}
		
		</script>
		
	</head>
	
	<body class="easyui-layout" border="false">
		<div data-options="region:'west',split:true" border="false" title="菜单栏" width='220'>
			<ul id="menu"></ul>
		</div>
		<div region="center" border="false"  width='100%'  style="overflow: hidden;">
			<div class="easyui-tabs" data-options="plain:false" id="tabs" fit="true">
				<div title="预警信息" href="system/first.html" border="false"></div>
			</div>
		</div>
	</body>
</html>
